<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Rural extends Model
{
    protected $guarded = [];

    public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }

    public function area()
    {
        return $this->belongsTo('App\Models\Area');
    }
}